package com.pvdnc.nsocket.protocol;

import com.pvdnc.nsocket.protocol.base.Packet;

public abstract class Interpreter<T> {

    public Interpreter(String command){
        mCommand=command;
    }

    private String mCommand;
    public String getCommand(){
        return mCommand;
    }

    public abstract byte[] toData(T msg);

    public abstract T fromByte(byte[] data);
}
